package com.bieber.democamp.sharesession.session;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * Created by bieber on 2015/3/16.
 */
public interface SessionManager {

    public static final String SESSION_COOKIE_KEY="session_token";

    public static final String SESSION_EXPIRE_KEY="session_expire";

    public static final int DEFAULT_SESSION_EXPIRE=60*30;//半小时

    public Session getSession(HttpServletRequest request,boolean create) throws IOException;
}
